import java.io.*;
import java.net.*;

public class JavaServerTCP
{
  public static void main(String[] args) throws IOException
  { 
    final int MAXLEN = 100;
    byte[] buf = new byte[MAXLEN];

    ServerSocket ss = new ServerSocket(2000);
    Socket connectionSocket = ss.accept();
    
    BufferedReader br = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
    String userText = br.readLine();
    System.out.println(userText);
    ss.close();
    
    System.out.println("Server Status : Active");

  }	
	
	
}